Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 23a0f43758714c11ca25c9ee515d0f0ca2abf7d8


Parents : d9fe743
Author : Mark Qvist <mark@unsigned.io>
Date : 2021-05-14T17:33:58+02:00

IndicativeListBox info exposed for navigation

Changes

1 files changed, 3 insertions(+), 0 deletions(-)


Diff

diff --git a/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py b/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py
index f49bd52..d4f18dc 100644
--- a/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py
+++ b/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py
@@ -183,6 +183,9 @@ class IndicativeListBox(urwid.WidgetWrap):
# Store the last focus to do/undo the off focus highlighting only if the focus has really changed and not if the
# widget is re-rendered because the terminal size has changed or similar.
self._last_focus_state = focus
+
+ self.top_is_visible = top_is_visible
+ self.bottom_is_visible = bottom_is_visible
return super().render(size, focus=focus)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────